Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update blacklisted props that can be passed to native HTML elements using the transferProps principle #520

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

mbohal
Copy link
Contributor

@mbohal mbohal commented Jan 10, 2024

No description provided.

@mbohal mbohal force-pushed the feature/update-transfer-props-blacklist branch from 459397e to 4955bcf Compare January 19, 2024 09:50
Copy link
Member

@adamkudrna adamkudrna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the docs! 👍🏻

src/components/_helpers/transferProps.js Outdated Show resolved Hide resolved
src/components/_helpers/transferProps.js Outdated Show resolved Hide resolved
src/components/_helpers/transferProps.js Outdated Show resolved Hide resolved
src/components/_helpers/transferProps.js Outdated Show resolved Hide resolved
Copy link
Member

@adamkudrna adamkudrna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd still appreciate a comment—or documentation—for the list of the blackdeny-listed props. Otherwise seems OK to me.

@adamkudrna
Copy link
Member

One more thing: please clean up the commits a bit, not all of them are fixups. Thank you!

obrazek

@mbohal
Copy link
Contributor Author

mbohal commented Feb 28, 2024

@adamkudrna wrote:

I'd still appreciate a comment—or documentation

I would prefer to deal with documentation once we decide if we want to make the transferProps function public. I hope we will make it public and also publicly documented.

As per comment I dont know what to write. The concept is describe already. the individual blacklisted props are what they are. I can not come up with anything other then banal sentences like We blacklist "className" prop to prevent setting custom classes..

Could you please either write the comments yourself or at least make an example? I'm obviously not really able to do it myself.

@mbohal mbohal force-pushed the feature/update-transfer-props-blacklist branch from 3d1b799 to 80c627e Compare February 29, 2024 08:29
@mbohal
Copy link
Contributor Author

mbohal commented Feb 29, 2024

It is rebased and ready for CR.

@mbohal mbohal requested a review from adamkudrna February 29, 2024 08:30
Copy link
Member

@adamkudrna adamkudrna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

…sing the transferProps principle

Update src/components/_helpers/transferProps.js

Co-authored-by: Adam Kudrna <[email protected]>

Update src/components/_helpers/transferProps.js

Co-authored-by: Adam Kudrna <[email protected]>

Update src/components/_helpers/transferProps.js

Co-authored-by: Adam Kudrna <[email protected]>
@mbohal mbohal force-pushed the feature/update-transfer-props-blacklist branch from 80c627e to 9c1ba79 Compare March 20, 2024 11:31
@mbohal mbohal merged commit 41b876c into master Mar 20, 2024
11 checks passed
@mbohal mbohal deleted the feature/update-transfer-props-blacklist branch March 20, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants